package com.project.frame.common.utils.convert;

import cn.hutool.core.date.DateUtil;

import java.beans.PropertyEditorSupport;

/**
 * desc
 *
 * @author lw007
 * @date 2021/12/23
 */
public class DateConvertEditor extends PropertyEditorSupport {
    @Override
    public void setAsText(String text) throws IllegalArgumentException {
        setValue(DateUtil.parse(text));
    }
}
